package homework.day01;

import java.io.File;
import java.util.Scanner;

public class Text03 {
    public static void main(String[] args) {
        Scanner inputname = new Scanner(System.in);
        System.out.println("请输入要要创建的项目名：");
        String name = inputname.next();
        File file = new File(name);
        if (file.exists()){
            System.out.println("目录已经存在！");
        }else{
            file.mkdir();
            System.out.println("ok!");
        }

    }
}
